package com.tengju.bff.interfaces.covercharge.constant;
/**
 * @Author: cj
 * @Description: 奖惩申请单撤销操作状态
 * @Date: 2020/12/25 19:37
 */
public enum RewardPunishRevokeTypeEnum {
    /**
     * 是撤销动作
     */
    REVOKE_YES(1, "是"),

    /**
     * 不是撤销动作
     */
    REVOKE_NO(0, "否")
    ;

    private Integer status;

    private String msg;

    RewardPunishRevokeTypeEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public static RewardPunishRevokeTypeEnum getStatusDesc (Integer status){
        for(RewardPunishRevokeTypeEnum statusEnum : (RewardPunishRevokeTypeEnum.values())){
            if(statusEnum.getStatus().equals(status)){//如果传入的code与此枚举code相同，则返回此枚举
                return statusEnum;
            }
        }
        return null;
    }
}
